Skip to content

fix: make preview browser deterministic#384

Merged
Vaibhaav-Tiwari merged 15 commits into
mainfrom
fix/deterministic-preview-browser
Jun 22, 2026
Merged

fix: make preview browser deterministic#384
Vaibhaav-Tiwari merged 15 commits into
mainfrom
fix/deterministic-preview-browser

Conversation

@Vaibhaav-Tiwari

Copy link
Copy Markdown
Collaborator

Summary

  • Add a daemon-side preview poller that detects active worker HTML entrypoints and updates the Browser tab through the existing SetPreview/CDC path.
  • Make bare ao preview prefer the workspace entrypoint, normalize stale relative targets, and support absolute local file paths as file:// URLs.
  • Keep the renderer/browser host compatible with older daemons and local file preview targets.

Verification

  • go test ./internal/preview ./internal/httpd/controllers ./internal/daemon ./internal/cli
  • npm.cmd run typecheck
  • npm.cmd run test -- src/renderer/hooks/useBrowserView.test.tsx src/main/browser-view-host.test.ts

Note

  • Full backend go test ./... was also run and reached unrelated existing Windows/local failures in agent/cline executable-bit checks, gitworktree shell/path expectations, stale OpenAPI specgen, legacyimport path expectations, and Windows symlink privilege.

@Vaibhaav-Tiwari Vaibhaav-Tiwari force-pushed the fix/deterministic-preview-browser branch from 3f2ef1d to 35dd7a5 Compare June 22, 2026 18:19
@Vaibhaav-Tiwari Vaibhaav-Tiwari merged commit 3e3d22c into main Jun 22, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant